/*  1:   */ package org.jetbrains.jps.model.impl.runConfiguration;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsElement;
import org.jetbrains.jps.model.ex.JpsNamedCompositeElementBase;
import org.jetbrains.jps.model.runConfiguration.JpsRunConfigurationType;
import org.jetbrains.jps.model.runConfiguration.JpsTypedRunConfiguration;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class JpsRunConfigurationImpl<P extends JpsElement>
/* 11:   */   extends JpsNamedCompositeElementBase<JpsRunConfigurationImpl<P>>
/* 12:   */   implements JpsTypedRunConfiguration<P>
/* 13:   */ {
/* 14:   */   private final JpsRunConfigurationType<P> a;
/* 15:   */   
/* 16:   */   public JpsRunConfigurationImpl(@NotNull String paramString, JpsRunConfigurationType<P> paramJpsRunConfigurationType, P paramP)
/* 17:   */   {
/* 18:32 */     super(paramString);
/* 19:33 */     this.a = paramJpsRunConfigurationType;
/* 20:34 */     this.myContainer.setChild(this.a.getPropertiesRole(), paramP);
/* 21:   */   }
/* 22:   */   
/* 23:   */   private JpsRunConfigurationImpl(JpsRunConfigurationImpl<P> paramJpsRunConfigurationImpl)
/* 24:   */   {
/* 25:38 */     super(paramJpsRunConfigurationImpl);
/* 26:39 */     this.a = paramJpsRunConfigurationImpl.a;
/* 27:   */   }
/* 28:   */   
/* 29:   */   @NotNull
/* 30:   */   public JpsRunConfigurationImpl<P> createCopy()
/* 31:   */   {
/* 32:45 */     void tmp8_5 = new JpsRunConfigurationImpl(this);
/* 33:45 */     if (tmp8_5 == null) {
/* 34:45 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/runConfiguration/JpsRunConfigurationImpl", "createCopy" }));
/* 35:   */     }
/* 36:45 */     return tmp8_5;
/* 37:   */   }
/* 38:   */   
/* 39:   */   @NotNull
/* 40:   */   public P getProperties()
/* 41:   */   {
/* 42:51 */     JpsElement tmp16_13 = this.myContainer.getChild(this.a.getPropertiesRole());
/* 43:51 */     if (tmp16_13 == null) {
/* 44:51 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/runConfiguration/JpsRunConfigurationImpl", "getProperties" }));
/* 45:   */     }
/* 46:51 */     return tmp16_13;
/* 47:   */   }
/* 48:   */   
/* 49:   */   public JpsRunConfigurationType<P> getType()
/* 50:   */   {
/* 51:56 */     return this.a;
/* 52:   */   }
/* 53:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.runConfiguration.JpsRunConfigurationImpl

 * JD-Core Version:    0.7.0.1

 */